/**************************************************************************
	Replication do-file: "Corruption in Customs"
	Cyril Chalendard, Ana Fernandes, Gael Raballand and Bob Rijkers
	
	Created on: 01/07/2022
**************************************************************************/

clear all
set more off, perm
cap log close
cls

* Extra commands: remove the asterisk to install
*net install cleanplots, from("https://tdmize.github.io/data/cleanplots")
*set scheme cleanplots, perm

* ----------------------- DIRECTORIES AND FOLDERS ----------------------- *

* Directories in which data are stored
global main "PUT YOUR DIRECTORY PATH HERE"
cd "$folder"

* Folders
global outputdata = "$main\Output Data"
cap mkdir "$main\Figures"
global figures = "$main\Figures"

* ----------------------------- BEGINS HERE ----------------------------- *

* -------
* Dataset
* -------
use "$outputdata\CFRR.dta", clear // open dataset


* ---------
* Figure A2
* ---------
scatter eis_f eis_nr_f if eis_f!=., ///
	msymbol(o) mcolor(gs8) msize(small) mlwidth(vvthin) ///
	xlabel(, nogrid) ///
	ylabel(, nogrid) ///
	xtitle("Excess interaction share - binary logits", size(small) color(black)) ///
	ytitle("Excess interaction share - calibrated", size(small) color(black)) ///
	name(Figure_A2, replace)
graph export "$figures\Figure_A2.eps", as(eps) replace
graph export "$figures\Figure_A2.pdf", as(pdf) replace


* -------------------------------- ENDS HERE -------------------------------- *